//
//  ReadListTableViewCell.m
//  leisure
//
//  Created by xalo on 16/4/18.
//  Copyright © 2016年 Mr.wangYongxu. All rights reserved.
//

#import "ReadListTableViewCell.h"
#import "ReadListModel.h"

@implementation ReadListTableViewCell

-(void)setCellWithReadListModel:(ReadListModel*)model{
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:model.coverimg] placeholderImage:[UIImage imageNamed:@"placeHolderPicture"]];
    self.title.text = model.title;
    self.content.text = model.content;
}

/*-(UIImageView *)coverimg{
    if (!_coverimg) {
        CGFloat height = self.frame.size.height;
        _coverimg = [[UIImageView alloc] initWithFrame:CGRectMake(0, self.frame.size.height/4, height/2, height*3/4)];
        _coverimg.contentMode = UIViewContentModeScaleToFill;
        [self addSubview:_coverimg];
    }
    return _coverimg;
}*/

-(void)awakeFromNib{
//    self.imageView.contentMode = UIViewContentModeScaleToFill;
//    [self.coverimg layoutIfNeeded];
}
@end
